package com.ydgk.jishuzhan.dao;

import com.ydgk.jishuzhan.beans.Talk;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TalkMapper {

    @Select("select * from talk")
    List<Talk> findAll();

    void save(Talk talk);

    @Select("select * from talk where id = #{id}")
    Talk findById(Integer id);

    @Select("select * from talk where userId = #{id}")
    List<Talk> findTalkById(Integer id);
}
